package com.itheima.mapper;

import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDao {
    //通过编码/名称/助记码模糊查询
    List<Setmeal> findPage(String queryString);

    void addSetmeal(Setmeal setmeal);

    @Select("select * from t_setmeal where id = #{id}")
    Setmeal findById(Integer id);

    void editSetmeal(Setmeal setmeal);
}
